package cn.huiyunche.base.service.interfaces;


import cn.huiyunche.base.service.model.DWaybillOilPrice;
import cn.huiyunche.base.service.vo.OrderCostTo;

/**
 * The interface D waybill oil price service.
 *
 * @FileName: cn.huiyunche.service.base.interfaces.tms
 * @Description: 运单油价信息
 * @author: Aaron
 * @date: 2016 /12/13 上午10:32
 */
public interface DWaybillOilPriceService {

    /**
     * Add long.
     *
     * @param oilPrice the oil price
     * @return the long
     */
    Long add(DWaybillOilPrice oilPrice);

    /**
     * Update int.
     *
     * @param oilPrice the oil price
     * @return the int
     */
    int update(DWaybillOilPrice oilPrice);

    /**
     * Update by d waybill id.
     *
     * @param waybillId   the waybill id
     * @param orderCostTo the order cost to
     */
    void updateByDWaybillId(Long waybillId, OrderCostTo orderCostTo);

    /**
     * Gets by d waybill id.
     *
     * @param waybillId the waybill id
     * @return the by d waybill id
     */
    DWaybillOilPrice getByDWaybillId(Long waybillId);
}
